<?php $this->_extends('_layouts/rulesets_layout'); ?>

<?php $this->_block('title'); ?> - 规则设置首页<?php $this->_endblock(); ?>

<?php $this->_block('nowselect'); ?><?php echo $gid;?><?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started">
	  <table>
		<tr><th width="5">　</th><th>规则名称</th><th>关键字</th><th><select name="ruleselect" onchange="reashrules();" id="ruleselect" title="<?php echo $gid;?>"><option onclick="reashrules();" value="">全部</option><option onclick="reashrules();" value="1">报警</option><option onclick="reashrules();" value="0">过滤</option></select></th><th>规则类型</th><th width="80">时间</th><th>操作</th></tr>
		<?php foreach ($group as $s): ?>
		<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->rulename);?></td><td><?php echo $s->keyword;?></td><td><?php if( $s->ruleflag=='1'){echo '报警';}else{echo '过滤';}?></td><td><?php echo iconv("gb2312//TRANSLIT","utf-8",$s->cncategory);?></td><td><?php echo $s->datetime;?></td><td><a href="<?php echo url('default::default/framework', array('id' => $s->id(),'groupid' => $gid,'control' => 'rulesetting','acts' => 'indexgroup|modify')); ?>"><img src="images/icons/edit.png"></a> <a href="<?php echo url('default::default/framework', array('id' => $s->id(),'control' => 'rulesetting','acts' => 'del|ruleaddform')); ?>"><img src="images/icons/del.png"></a></td></tr>
		<?php endforeach; ?>
		<tr>
		  <td colspan="7"><center>
		   共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
		</td>
		</tr>
      </table>
	</div>
	
<?php $this->_endblock('contents'); ?>